package com.intel.two.pojo.smarthome;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @BelongsProject: intelligentcommunity
 * @BelongsPackage: com.intel.two.pojo.smarthome
 * @Author: yanhongwei
 * @CreateTime: 2022-10-13  16:29
 * @Description: TODO
 * @Version: 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Household {
    private int household_id;
    private String household_name;
    private double household_price;

    @DateTimeFormat(pattern = "yyyy-MM-dd")   // springmvc 接受日期字段格式
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")  // jackson 响应的日期格式
    private Date household_lfdate;   //出厂日期
    private int guarantee_id;  // 保修单id
    private int serviceman_id; // 维修人员
    private String household_pic; //家居照片



}
